/// bedId : 2411
/// bedNo : "301-B"
/// branchId : 6627
/// createdBy : "5"
/// createdDate : "2024-05-31 14:53:50"
/// customerId : 7647
/// customerName : "陈菊君"
/// deleteStatus : 0
/// drugId : 1
/// drugName : "藿香正气胶囊"
/// id : 8
/// minUnit : "2"
/// minUnitName : "粒"
/// planId : 0
/// planTime : "2024-05-31 00:00:00"
/// saasId : 1000
/// specifications : "10g*12粒"
/// status : 0
/// statusName : "待核对"
/// stockId : 6
/// updatedBy : "5"
/// updatedDate : "2024-05-31 14:53:50"
/// usageQuantity : 1
/// usageTime : "睡前"

class TakeMedicineListData {
  TakeMedicineListData(
      {this.bedId,
      this.bedNo,
      this.branchId,
      this.createdBy,
      this.createdDate,
      this.customerId,
      this.customerName,
      this.deleteStatus,
      this.drugId,
      this.drugName,
      this.id,
      this.minUnit,
      this.minUnitName,
      this.planId,
      this.planTime,
      this.saasId,
      this.specifications,
      this.status,
      this.statusName,
      this.stockId,
      this.updatedBy,
      this.updatedDate,
      this.usageQuantity,
      this.usageTime,
      this.verifierTime,
      this.verifierName,this.usageMethod,this.assignorTime,this.assignorName});

  TakeMedicineListData.fromJson(dynamic json) {
    bedId = json['bedId'];
    bedNo = json['bedNo'];
    branchId = json['branchId'];
    createdBy = json['createdBy'];
    createdDate = json['createdDate'];
    customerId = json['customerId'];
    customerName = json['customerName'];
    deleteStatus = json['deleteStatus'];
    drugId = json['drugId'];
    drugName = json['drugName'];
    id = json['id'];
    minUnit = json['minUnit'];
    minUnitName = json['minUnitName'];
    planId = json['planId'];
    planTime = json['planTime'];
    saasId = json['saasId'];
    specifications = json['specifications'];
    status = json['status'];
    statusName = json['statusName'];
    stockId = json['stockId'];
    updatedBy = json['updatedBy'];
    updatedDate = json['updatedDate'];
    usageQuantity = json['usageQuantity'];
    usageTime = json['usageTime'];
    verifierName = json['verifierName'];
    verifierTime = json['verifierTime'];
    usageMethod = json['usageMethod'];
    assignorName = json['assignorName'];
    assignorTime = json['assignorTime'];
  }

  num? bedId;
  String? bedNo;
  num? branchId;
  String? createdBy;
  String? createdDate;
  num? customerId;
  String? customerName;
  num? deleteStatus;
  num? drugId;
  String? drugName;
  num? id;
  String? minUnit;
  String? minUnitName;
  num? planId;
  String? planTime;
  num? saasId;
  String? specifications;
  num? status;
  String? statusName;
  num? stockId;
  String? updatedBy;
  String? updatedDate;
  num? usageQuantity;
  String? usageTime;
  String? verifierName;
  String? verifierTime;
  String? usageMethod;
  String? assignorName;
  String? assignorTime;


  TakeMedicineListData copyWith({
    num? bedId,
    String? bedNo,
    num? branchId,
    String? createdBy,
    String? createdDate,
    num? customerId,
    String? customerName,
    num? deleteStatus,
    num? drugId,
    String? drugName,
    num? id,
    String? minUnit,
    String? minUnitName,
    num? planId,
    String? planTime,
    num? saasId,
    String? specifications,
    num? status,
    String? statusName,
    num? stockId,
    String? updatedBy,
    String? updatedDate,
    num? usageQuantity,
    String? usageTime,
  }) =>
      TakeMedicineListData(
        bedId: bedId ?? this.bedId,
        bedNo: bedNo ?? this.bedNo,
        branchId: branchId ?? this.branchId,
        createdBy: createdBy ?? this.createdBy,
        createdDate: createdDate ?? this.createdDate,
        customerId: customerId ?? this.customerId,
        customerName: customerName ?? this.customerName,
        deleteStatus: deleteStatus ?? this.deleteStatus,
        drugId: drugId ?? this.drugId,
        drugName: drugName ?? this.drugName,
        id: id ?? this.id,
        minUnit: minUnit ?? this.minUnit,
        minUnitName: minUnitName ?? this.minUnitName,
        planId: planId ?? this.planId,
        planTime: planTime ?? this.planTime,
        saasId: saasId ?? this.saasId,
        specifications: specifications ?? this.specifications,
        status: status ?? this.status,
        statusName: statusName ?? this.statusName,
        stockId: stockId ?? this.stockId,
        updatedBy: updatedBy ?? this.updatedBy,
        updatedDate: updatedDate ?? this.updatedDate,
        usageQuantity: usageQuantity ?? this.usageQuantity,
        usageTime: usageTime ?? this.usageTime,
      );

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['bedId'] = bedId;
    map['bedNo'] = bedNo;
    map['branchId'] = branchId;
    map['createdBy'] = createdBy;
    map['createdDate'] = createdDate;
    map['customerId'] = customerId;
    map['customerName'] = customerName;
    map['deleteStatus'] = deleteStatus;
    map['drugId'] = drugId;
    map['drugName'] = drugName;
    map['id'] = id;
    map['minUnit'] = minUnit;
    map['minUnitName'] = minUnitName;
    map['planId'] = planId;
    map['planTime'] = planTime;
    map['saasId'] = saasId;
    map['specifications'] = specifications;
    map['status'] = status;
    map['statusName'] = statusName;
    map['stockId'] = stockId;
    map['updatedBy'] = updatedBy;
    map['updatedDate'] = updatedDate;
    map['usageQuantity'] = usageQuantity;
    map['usageTime'] = usageTime;
    return map;
  }
}
